package com.sxkj.gis.wms.process;

import java.io.ByteArrayOutputStream;
import java.io.IOException;
import java.util.Map;

import org.apache.batik.svggen.SVGGraphics2D;
import org.opengis.referencing.FactoryException;
import org.opengis.referencing.NoSuchAuthorityCodeException;

/**
 * 生产过程
 * @author admin
 *
 */
public interface WmsProProcess {
	/**
	 * 返回 常规格式 图片流
	 * @return
	 * @throws NoSuchAuthorityCodeException
	 * @throws FactoryException
	 * @throws IOException
	 */
	Map<String, ByteArrayOutputStream> returnPictureByteStream() throws NoSuchAuthorityCodeException, FactoryException, IOException;
	
	/**
	 * 返回的是SVG 格式的流
	 * @param svgGenerator
	 * @return
	 * @throws NoSuchAuthorityCodeException
	 * @throws FactoryException
	 * @throws IOException
	 */
	Map<String,ByteArrayOutputStream> returnSVGByteStream(SVGGraphics2D svgGenerator) throws NoSuchAuthorityCodeException, FactoryException, IOException;
	
	
}
